package cn.icanci.loopstack.ras.server.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 服务端配置
 *
 * @author icanci
 * @since 1.0 Created in 2023/02/04 22:52
 */
@Component
@ConfigurationProperties(prefix = "ras-server")
public class RasServerProperties {
    /**
     * 注册中心appId，不建议修改
     */
    private String appId      = "cn.icanci.loopstack.ras.server";
    /**
     * 客户端注册的port：此处指的是服务端向其他服务器注册的端口
     */
    private int    clientPort = 11100;
    /**
     * 服务端ip，以,分隔：此处指的是服务端向其他服务器注册的地址
     */
    private String serverIps  = "127.0.0.1";
    /**
     * 服务端port：此处指的是服务端启动提供服务的端口
     */
    private int    serverPort = 9995;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public int getClientPort() {
        return clientPort;
    }

    public void setClientPort(int clientPort) {
        this.clientPort = clientPort;
    }

    public String getServerIps() {
        return serverIps;
    }

    public void setServerIps(String serverIps) {
        this.serverIps = serverIps;
    }

    public int getServerPort() {
        return serverPort;
    }

    public void setServerPort(int serverPort) {
        this.serverPort = serverPort;
    }
}
